import base from '@/api/base'; // 导入接口域名列表
import axios from '@/api/http.js'; // 导入http中创建的axios实例

// 各含水层数据列表
export function getHscList() {
  return axios({
    url: `${base}/hydrological/web/hsc-list`,
    method: 'GET'
  });
}

// 获取含水层近24小时含水层监测值
export function getHscStatistics(params) {
  return axios({
    url: `${base}/hydrological/web/hsc-statistics?zdnum=${params}`,
    method: 'GET'
  });
}

// 水文长观孔统计
export function getSwcgkStatistics() {
  return axios({
    url: `${base}/hydrological/web/swcgk-statistics`,
    method: 'GET'
  });
}

// 获取所有的涌水量站点
export function getYslList() {
  return axios({
    url: `${base}/hydrological/web/ysl-list`,
    method: 'GET'
  });
}

// 获取瞬时涌水量
export function getYslSpeed() {
  return axios({
    url: `${base}/hydrological/web/ysl-speed`,
    method: 'GET'
  });
}

// 获取涌水量近24小时的统计数据
export function getYslStatistics(params) {
  return axios({
    url: `${base}/hydrological/web/ysl-statistics?zdnum=${params}`,
    method: 'GET'
  });
}

// 获取所有的排水量站点
export function getPslList() {
  return axios({
    url: `${base}/hydrological/web/psl-list`,
    method: 'GET'
  });
}

// 获取瞬时排水量
export function getPslSpeed() {
  return axios({
    url: `${base}/hydrological/web/psl-speed`,
    method: 'GET'
  });
}

// 获取排水量近24小时的统计数据
export function getPslStatistics(params) {
  return axios({
    url: `${base}/hydrological/web/psl-statistics?zdnum=${params}`,
    method: 'GET'
  });
}

// 获取水文异常告警数量
export function getAlarmCount() {
  return axios({
    url: `${base}/hydrological/web/alarm-count`,
    method: 'GET'
  });
}

// 获取水文异常告警近30天统计分析
export function getAlarmStatistics() {
  return axios({
    url: `${base}/hydrological/web/alarm-30-statistics`,
    method: 'GET'
  });
}

// 获取水文异常告警区域列表
export function getAlarmLocals() {
  return axios({
    url: `${base}/hydrological/web/alarm-locals`,
    method: 'GET'
  });
}

// 获取水文异常告警监测列表
export function getAlarmPage(data) {
  return axios({
    url: `${base}/hydrological/web/alarm-page`,
    method: 'POST',
    data
  });
}
